go/types.dependency.Pkg (method)
25 uses
go/types (current package)
decl.go#L279: return packagePrefix(obj.Pkg(), check.qualifier) + obj.Name()
errsupport.go#L55: if obj.Pkg() == check.pkg {
object.go#L32: Pkg() *Package // package to which this object belongs; nil for labels and objects in the Universe scope
object.go#L575: if obj.Pkg() != nil && obj.Pkg().scope.Lookup(obj.Name()) == obj {
object.go#L576: buf.WriteString(packagePrefix(obj.Pkg(), qf))
resolver.go#L473: err.addf(alt, "%s already declared through dot-import of %s", alt.Name(), obj.Pkg())
typexpr.go#L74: if typ == nil || (gotType && wantType && obj.Pkg() == check.pkg) {
go.pact.im/x/plumb/internal/emit
qual.go#L83: pre := q.qualify(obj.Pkg())
golang.org/x/exp/apidiff
messageset.go#L72: thisPackagePath := obj.Pkg().Path()
messageset.go#L93: tn := types.TypeString(recv.Type(), types.RelativeTo(obj.Pkg()))
golang.org/x/tools/go/types/objectpath
objectpath.go#L235: pkg := obj.Pkg()
objectpath.go#L940: if obj.Pkg() != pkg {
golang.org/x/tools/go/types/typeutil
ui.go#L45: if m := mset.Lookup(meth.Obj().Pkg(), meth.Obj().Name()); m != nil {
golang.org/x/tools/internal/gcimporter
iexport.go#L529: pkgObjs[obj.Pkg()] = append(pkgObjs[obj.Pkg()], pkgObj{obj, name})
iexport.go#L663: if obj.Pkg() == types.Unsafe {
iexport.go#L668: if p.shallow && obj.Pkg() != p.localpkg {
iexport.go#L1192: if obj.Pkg() == nil || obj.Pkg() == w.p.localpkg {
iexport.go#L1224: w.pkg(obj.Pkg())
iexport.go#L1295: w.typ(obj.Type(), obj.Pkg())
iimport.go#L687: obj.Pkg().Scope().Insert(obj)
golang.org/x/tools/internal/typesinternal
types.go#L154: return obj.Pkg() != nil && obj.Parent() == obj.Pkg().Scope()